execute store result score #maxPower temp run data get entity @s item.components."minecraft:custom_data".guardTowerData.max_power
execute if score @s Power >= #maxPower temp run return run scoreboard players reset #maxPower temp
scoreboard players reset #maxPower temp
return fail